<template>
  <div class="vodes" v-show="isbools">
    <div class="zhongjian">
      <div>
        <p v-show="stybools">欢迎加入Rookies联盟</p>
        <p v-show="!stybools">不敬网红不敬星 只敬民族英雄辈</p>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { objectExpression } from "@babel/types";
import { defineComponent, ref, isRef, reactive } from "vue";

export default defineComponent({
  name: "kaifa",
  setup() {
    let text = ref("爱党爱人民");
    let isbools = ref(true);
    let stybools = ref<boolean>(true);
    let data = reactive<any>({
      text: "",
    });

    function init(): void {
      setTimeout(() => {
        stybools.value = false;
      }, 2000);
      setTimeout(() => {
        isbools.value = false;
      }, 5000);
    }
    init();
    return { text, isbools, stybools };
  },
});
</script>

<style lang="less" scoped>
.vodes {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  font-size: 0.7rem;
  text-align: center;
  letter-spacing: 0.0375rem;
  overflow: hidden;
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  animation: loading1 3s ease-in-out forwards;
  .zhongjian {
    word-break: break-all;
    outline: none;
    font-family: LXGWWenKai;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: var(--bgColor);
    position: relative;
    animation: loading2 2s 2s ease-in-out forwards;
    @keyframes loading1 {
      0% {
        color: white;
      }

      50% {
        color: black;
      }

      100% {
        color: white;
      }
    }
    @keyframes loading2 {
      50% {
        padding: 0.25rem 100%;
      }

      100% {
        padding: 100% 100%;
      }
    }
  }
}
</style>